package tedu.cn.submarine;

import javax.swing.ImageIcon;

public class Mine extends SeaObject {
    public Mine(int x,int y){
        super(30,47,x,y,1);
    }

    public ImageIcon getImage(){
        return Images.mine;
    }

    public void move(){
        setY(getY()-getSpeed());
    }

    public boolean isOutOfBounds(){
        return getY() <= 110-getHeight();
    }
}
